package com.angel.service.ServiceImpl;

import com.angel.bean.dto.InMessageDto;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.angel.bean.InMessage;
import com.angel.mapper.InMessageDao;
import com.angel.service.InMessageService;

@Service
public class InMessageServiceImpl implements InMessageService{

    @Resource
    private InMessageDao inMessageDao;

    @Override
    public int insert(InMessage inMessage){
        return inMessageDao.insert(inMessage);
    }

    @Override
    public int insertSelective(InMessage inMessage){
        return inMessageDao.insertSelective(inMessage);
    }

    @Override
    public int insertList(List<InMessage> inMessages){
        return inMessageDao.insertList(inMessages);
    }

    @Override
    public int update(InMessage inMessage){
        return inMessageDao.update(inMessage);
    }

    @Override
    public List<InMessageDto> findMenssage(InMessage inMessage) {
        return inMessageDao.selectMenssage(inMessage);
    }
}
